// 表单字段类型定义
const FormDataType = [
    "number",   // id
    "string",   // postCode
    "string",   // name
    "string",   // description
    "number",   // status
    "dateTime", // createTime
    "dateTime", // updateTime
    "number"    // isDeleted
];

// 表单默认数据
const FormData = {
    id: null,
    postCode: "",
    name: "",
    description: "",
    status: null,
    createTime: null,
    updateTime: null,
    isDeleted: null
};

// 字段标签
const labels = {
    id: "岗位ID",
    postCode: "岗位编码",
    name: "岗位名称",
    description: "描述",
    status: "状态",
    createTime: "创建时间",
    updateTime: "修改时间",
    isDeleted: "删除标记"
};

// 选项配置
const options = {
    status: [
        { value: 1, label: "正常" },
        { value: 0, label: "停用" }
    ],
    isDeleted: [
        { value: 1, label: "可用" },
        { value: 0, label: "不可用" }
    ]
};

// 统一导出配置
export const PostFormConfig = {
    FormData,
    FormDataType,
    labels,
    options
};

export default PostFormConfig;